<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>企业名片</title>
<meta name="viewport"
	content="width=device-width,initial-scale=1,user-scalable=0">
<link rel="stylesheet" href="${ctxPath}/weui/css/weuix.min.css" />
<link rel="stylesheet" href="${ctxPath}/css/company/company-card.css" />
<script src="${ctxPath}/weui/js/zepto.min.js"></script>
<script src="${ctxPath}/js/company/company-card.js"></script>
<link rel="shortcut icon" href="${ctxPath}/pic/icon.jpg" />
</head>
<body ontouchstart style="background-color: #f8f8f8;" ctxPath=${ctxPath}>
<%
 var  url = company.picId! ;  //安全输出.即使没有图片url页面渲染也不会保存
 var defaultPic= ctxPath + "/pic/default.jpg";
%>
	<!-- 头部样式 -->
	<div class="bg-blue weui-header">
		<div class="weui-header-left">
			<a class="icon icon-109 f-white" id="companyInfoBack"></a>
		</div>
		<h1 class="weui-header-title">企业名片</h1>
	</div>
	<div class="weui_tab info_head">
		<div class="weui_navbar info_head" id="tab1">
			<div id="update1" class="weui_navbar_item tab-red">资料修改</div>
			<div id="drumbeating1" class="weui_navbar_item">公司宣传</div>
			<div id="seting1" class="weui_navbar_item">设置</div>
		</div>
	</div>
	<!-- 资料修改 -->
	<div>
		<form id="form_info">
			<div id="update" class="weui_cells weui_cells_form">
				<div class="weui_cells_title">公司资料</div>
				<!-- 公司名称 -->
				<div class="weui_cell">
					<div class="weui_cell_hd">
						<label class="weui_label">公司名称</label>
					</div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_input" type="text" name="companyName" placeholder="${company.companyName!}" value="${company.companyName!}"></input>
					</div>
				</div>
				<!-- 所在行业 -->
				<div class="weui_cell">
					<div class="weui_cell_hd">
						<label class="weui_label">所在行业</label>
					</div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_input" name="belongIndustry" type="text" placeholder="${company.belongIndustry!}" value="${company.belongIndustry!}"></input>
					</div>
				</div>
				<!-- 技能培训 -->
				<div class="weui_cell weui_cell_switch">
					<div class="weui_cell_hd weui_cell_primary">技能培训</div>
					<div class="weui_cell_ft">
						<input class="weui_switch" type="checkbox" checked></input>
					</div>
				</div>
				<!-- 产品宣传 -->
				<div class="weui_cell weui_cell_switch">
					<div class="weui_cell_hd weui_cell_primary">产品宣传</div>
					<div class="weui_cell_ft">
						<input class="weui_switch" type="checkbox" checked></input>
					</div>
				</div>
				<!-- 联系电话 -->
				<div class="weui_cell">
					<div class="weui_cell_hd">
						<label class="weui_label">联系电话</label>
					</div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_input" name="telephoneNumber" type="text" placeholder="${company.telephoneNumber!}" value="${company.telephoneNumber!}"></input>
					</div>
				</div>
				<!-- 公司地址 -->
				<div class="weui_cell">
					<div class="weui_cell_hd">
						<label class="weui_label">公司地址</label>
					</div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_input" name="companyAddress" type="text" placeholder="${company.companyAddress!}" value="${company.companyAddress!}"></input>
					</div>
				</div>
				<%
 						for(var extraInfo in extra!){
 							var name=extraInfo.key;
 							var value=extraInfo.value;
				%>
					<div class="weui_cell">
						<div class="weui_cell_hd">
							<label class="weui_label insertLable">${name!}</label>
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input insertValues" type="text" placeholder="${value!}" value="${value!}"></input>
						</div>
					</div>
				<%
						}
				%>
				<div class="weui_btn_area weui_btn_area_inline infoBtn">
					<a class="weui_btn weui_btn_primary" href="javascript:;" id="companyInfo_insertItem">+新增项</a>
					<a class="weui_btn weui_btn_primary" href="javascript:;" id="companyInfo_insertFinish">完成</a>
					<input type="hidden" name="id" value="${company.id}"></input>
					<input type="hidden" id="extraInfoId" name="extraInfoId" value="${company.extraInfoId}"></input>
				</div>
			</div>
		</form>
		<!-- 公司宣传 -->
		<div id="drumbeating" class="info_hide_body">
			<!-- 公司风采按钮 -->
			<%
				var dMap=describeMap!;
				if(isEmpty(dMap)){
			%>
			<div class="drumbeating_insert_btn insert_btn_color">
				<p>暂无公司宣传</p>
			</div>
			<%
				}else{
			%>
				<!-- 数据库读取公司宣传 -->
				<div>
					<div>读取公司宣传测试</div>
				</div>
			<%
				}
			%>
			<div class="drumbeating_insert_btn">
				<a href="javascript:;" id="drumbeatingSubmit">添加公司宣传</a>
			</div>
		</div>
		<!-- 设置 -->
		<div id="seting" class="info_hide_body">
			<div class="weui_cells weui_cells_form">
				<div class="weui_cell weui_cell_switch">
					<div class="weui_cell_hd weui_cell_primary">成员采取邀请制</div>
					<div class="weui_cell_ft">
						<input class="weui_switch" type="checkbox" checked></input>
					</div>
				</div>
				<div class="weui_cell weui_cell_switch">
					<div class="weui_cell_hd weui_cell_primary">只有企业管理者可以修改企业信息</div>
					<div class="weui_cell_ft">
						<input class="weui_switch" type="checkbox" checked></input>
					</div>
				</div>
				<div class="weui_cell weui_cell_switch">
					<div class="weui_cell_hd weui_cell_primary">允许搜索到企业</div>
					<div class="weui_cell_ft">
						<input class="weui_switch" type="checkbox" checked></input>
					</div>
				</div>
				<div class="weui_cell weui_cell_select weui_select_after">
					<div class="weui_cell_hd">
						<label for class="weui_label" style="width=50%">管理人设置</label>
					</div>
					<div class="weui_cell_bd weui_cell_primary">
						<select class="weui_select" name="select">
							<option value="1">刘德华</option>
							<option value="2">张曼玉</option>
							<option value="3">成龙</option>
						</select>
					</div>
				</div>
				<div class="info_seting_insertItem">
					<p><a href="javascript:;">+新增项</a></p>
				</div>
			</div>
			<div class="weui_cells">
				<div class="weui_cells_title">成员列表</div>
				<div class="weui_cell">
					<div class="weui_cell_hd"><span class="icon icon-57"></span></div>
					<div class="weui_cell_bd weui_cell_primary info_seting_memMargin">刘德华</div>
					<div class="weui_cell_ft">
						<a href="javascript:;" class="icon icon-95 info_seting_memMargin"></a>
					</div>
				</div>
				<div class="weui_cell">
					<div class="weui_cell_hd"><span class="icon icon-58"></span></div>
					<div class="weui_cell_bd weui_cell_primary info_seting_memMargin">张曼玉</div>
					<div class="weui_cell_ft">
						<a href="javascript:;"  class="icon icon-95 info_seting_memMargin"></a>
					</div>
				</div>
			</div>
			<div class="weui_btn_area weui_btn_area_inline">
				<a href="javascript:;" class="weui_btn weui_btn_plain_default">完成</a>
				<a href="javascript:;" class="weui_btn weui_btn_plain_default">+</a>
			</div>
		</div>
	</div>
</body>
</html>